Simulating a die roll by flipping two coins
نویسنده
چکیده
We show how to simulate a roll of a fair n-sided die by one flip of a biased coin with probability 1/n of coming up heads, followed by 3⌊log 2 n⌋+ 1 flips of a fair coin. Let a p-coin be a biased coin with probability p of coming up heads. A fair coin is a (1/2)-coin. A fair n-sided die is a die with n sides, each of which comes up with probability 1/n when the die is rolled. Proposition 1. For every positive integer n, and k = ⌊log2 n⌋, there are two integers a and b, with 0 6 a, b 6 2, such that a+ b(n − 1) = 2. Proof. If n = 2, we let a = b = 2. Otherwise 2 < n < 2, and we let a and b be, respectively, the remainder and the quotient of the Euclidean division of 2 by n− 1. Hence 0 6 a < n− 1 < 2, b > 0, and b = 2 − a n− 1 6 2 2 = 2. Lemma 2. A flip of a (2/n)-coin, where k = ⌊log2 n⌋, can be simulated by one flip of a (1/n)-coin and k + 1 flips of a fair coin. Proof. We show an algorithm that, given the outcomes of the coin flips, outputs “heads” with probability 2/n and “tails” with probability 1−2/n. Let a and b be as in Proposition 1, and let d < 2 be the non-negative integer whose i-th binary digit is 1 if and only if the fair coin comes up heads on the i-th flip, with 1 6 i 6 k + 1. We output “heads” if and only if the (1/n)-coin comes up heads and d < a, or the (1/n)-coin comes up tails and d < b. This happens with probability 1 n · a 2 + n− 1 n · b 2 = 2 n · 2 = 2 n . ∗School of Electrical Engineering and Computer Science, University of Ottawa, Ottawa ON, Canada, [email protected].
منابع مشابه
A Simpler Proof of the Existence of Quantum Weak Coin Flipping with Arbitrarily Small Bias
God does not play dice. He flips coins instead.” And though for some reason He has denied us quantum bit commitment. And though for some reason he has even denied us strong coin flipping. He has, in His infinite mercy, granted us quantum weak coin flipping so that we too may flip coins. Instructions for the flipping of coins are contained herein. But be warned! Only those who have mastered Kita...
متن کاملSimple, Near-Optimal Quantum Protocols for Die-Rolling
Die-rolling is the cryptographic task where two mistrustful, remote parties wish to generate a random D-sided die-roll over a communication channel. Optimal quantum protocols for this task have been given by Aharon and Silman (New Journal of Physics, 2010) but are based on optimal weak coin-flipping protocols which are currently very complicated and not very well understood. In this paper, we f...
متن کاملFully Simulatable Quantum-Secure Coin-Flipping and Applications
We propose a coin-flip protocol which yields a string of strong, random coins and is fully simulatable against poly-sized quantum adversaries on both sides. It can be implemented with quantum-computational security without any set-up assumptions, since our construction only assumes mixed commitment schemes which we show how to construct in the given setting. We then show that the interactive ge...
متن کاملA computational design-of-experiments study of hemming processes for automotive aluminium alloys
Hemming is a three-step sheet-folding process utilized in the production of automotive closures. It has a critical impact on the performance and perceived quality of assembled vehicles. Using a two-dimensional finite element model, this paper presents a design-of-experiments (DOE) study of the relationships between important hemming process parameters and hem quality for aluminium alloy AA 6111...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1506.00086 شماره
صفحات -
تاریخ انتشار 2015